cmake_minimum_required (VERSION 2.8)
cmake_policy(SET CMP0015 NEW)

project (klipApp)
include_directories(
	../klip/inc
)

if (NOT CMAKE_BUILD_TYPE)
  SET(CMAKE_BUILD_TYPE Debug CACHE STRING
      "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel."
      FORCE)
endif(NOT CMAKE_BUILD_TYPE)

if (CMAKE_BUILD_TYPE STREQUAL Debug)
	add_definitions(-D_DEBUG)
elseif (CMAKE_BUILD_TYPE STREQUAL Release)
	add_definitions(-D_RELEASE)
endif()

link_directories(
	"../${CMAKE_BUILD_TYPE}/"
)

if (CMAKE_COMPILER_IS_GNUCXX)
	set (CMAKE_CXX_FLAGS "-std=c++0x")
endif (CMAKE_COMPILER_IS_GNUCXX)

set(
	EXECUTABLE_OUTPUT_PATH
	"../${CMAKE_BUILD_TYPE}/"
)

set(
	SOURCE_FILES
	./klipApp.cpp
)

add_executable(
	klipApp
	${SOURCE_FILES}
)

target_link_libraries(klipApp klip GLEW png jpeg Cg CgGL)
